package cn.edu.scau.cmi.xiehaizhou.singleton;

public class Chairman {
	private static Chairman instance;
	private String name;
	private Chairman(String name)
	{
		this.name = name;
	}
	public static Chairman getInstance(String name)
	{
		if(instance == null || name == null)
			instance = new Chairman("毛泽东");
		return instance;
	}
	public String getName()
	{
		return name;
	}
}
